package com.itheima.extends2;

import lombok.AllArgsConstructor;


public class Dog extends Animal {
    @Override
    public void eat() {
        System.out.println("狗吃肉");
    }

    public void lookHouse() {
        System.out.println("狗看家");
    }

    public Dog() {
    }

    public Dog(String name, int age) {
        super(name, age);
    }
}
